import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'event_type' })
export class EventTypeEntity{
    @Column({ name: 'category_id', type: 'varchar',   charset: 'utf8mb4', collation: 'utf8mb4_general_ci'})
    categoryId: string;


    @PrimaryColumn('varchar', { name: 'id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    id: string;


    @Column({ name: 'name', type: 'varchar',   charset: 'utf8mb4', collation: 'utf8mb4_general_ci'})
    name: string;

    @Column({ name: 'code', type: 'varchar',   charset: 'utf8mb4', collation: 'utf8mb4_general_ci'})
    code: string;


    // 状态： 正常1，已删除2
    @Column('int', { name: 'status' })
    status: number;

}
